<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/statistics/chargeStatistics.js"></script>
    <link rel="stylesheet" href="${ctx}/statics/css/update.css">
    <link rel="stylesheet" href="${ctx}/statics/css/common.css">
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.css">
    <script src="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.js"></script>
    <%--<link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/skins/laydate.css">--%>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/laydate.css">
    <script src="${ctx}/libjs/plugins/laydate/laydate.js"></script>
    <style>
        .ibox-body #exampleModal input, .ibox-body #exampleModal select {
            width: 100% !important;
            height: 38px !important;
        }

        #exampleModal .btn, .btn-sm {
            margin-bottom: 0;
        }

        #exampleModal .form-group {
            padding-top: 0;
            margin-bottom: 5px;
        }

        .bootstrap-table .fixed-table-container .table thead th .th-inner {
            text-align: center !important;
        }
    </style>

</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return'<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>财务管理</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>充值充电统计列表</strong>' +
            '</li>' +
            '</ol>';
    });


    var has_add = 'hidden';
    var has_edit = 'hidden';
    var has_delete = 'hidden';
</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="row">
                    <input id="nickname" name="nickname" type="text" class="form-control input-distance shortInput" placeholder="用户名">
                    <input id="outOrderNum" name="outOrderNum" type="text" class="form-control input-distance shortInput" placeholder="订单号">
                    <input id="station" name="station" type="text" class="form-control input-distance shortInput" placeholder="站点">
                    <input id="operator" name="operator" type="text" class="form-control input-distance shortInput" placeholder="加盟商">

                </div>
                <div class="row">
                    <input id="gunNum" name="gunNum" type="text" class="form-control input-distance shortInput" placeholder="充电枪编号">
                    <input id="startTime" name="startTime" type="text" class="form-control layer-date input-distance timeInput" placeholder="开始时间">
                    <input id="endTime" name="endTime" type="text" class="form-control layer-date input-distance timeInput" placeholder="结束时间">
                    <button class="btn btn-success input-distance" onclick="rechargeStatistics.reLoad()">查询</button>
                    <div class="pull-left search fr">
                        <button class="btn btn-success exportBtn" style="margin-left: 20px;" onclick="rechargeStatistics.exportInfo()">导出</button>
                    </div>
                </div>

                <table id="exampleTable" data-mobile-responsive="true">
                </table>
            </div>
        </div>
    </div>
</div>
</div>
<script type="text/javascript">
    rechargeStatistics.init();
    layui.use(['form', 'jquery', 'tree', 'laydate', 'util'], function () {});

    var startTime = {
        elem: '#startTime',
        format: 'YYYY-MM-DD hh:mm:ss',
        // theme: '#3195f0',
        // min: laydate.now(), //设定最小日期为当前日期
        // max: '2099-06-16 23:59:59', //最大日期
        istime: true,
        istoday: false,
        choose: function (datas) {
            $("#endTime").val("")
            endTime.min = datas
        }
    };
    var endTime = {
        elem: '#endTime',
        format: 'YYYY-MM-DD hh:mm:ss',
        // theme: '#3195f0',
        // min: laydate.now(),
        // max: '2099-06-16 23:59:59',
        istime: true,
        istoday: false,
        choose: function (datas) {
            startTime.max = datas; //结束日选好后，重置开始日的最大日期
        }
    };

    laydate(startTime);
    laydate(endTime);
    laydate.skin('molv');//皮肤
</script>
</body>
</html>
